package cn.demo.app.a.events;

import cn.ifloat.brick.logger.core.LogKit;
import cn.ifloat.brick.sprofile.common.ApplicationStartedEvent;
import cn.ifloat.brick.sprofile.common.init.config.SpringUtil;
import org.apache.commons.io.IOUtils;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.core.io.Resource;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
import org.springframework.core.io.support.ResourcePatternResolver;
import org.springframework.stereotype.Component;
import org.springframework.util.ResourceUtils;

import java.io.*;
import java.nio.file.Files;

/**
 * @author: float 2023/6/13 09:14
 */

@Component
public class ExampleEvent  implements ApplicationStartedEvent {

    @Override
    public void exec(ApplicationArguments applicationArguments) {
        System.out.println("启动后事件处理器");
    }

    @Override
    public String toString() {
        return "测试应用启动事件通知";
    }
}
